package com.haixiaoke.saas.common.constant;

/**
 * 消息常量类
 * @author panda
 * @Date 2024/11/11
 **/
public class MessageConstants {

    /**
     * 普通消息类型：1.应用外
     */
    public static final String ORDINARY_MESSAGE_TYPE_OUT = "1";

    /**
     * 普通消息类型：2.应用内
     */
    public static final String ORDINARY_MESSAGE_TYPE_IN = "2";

    /**
     * 推送渠道：1.企业微信
     */
    public static final String PUSH_CHANNEL_ENTERPRISE_WECHAT = "1";

    /**
     * 推送渠道：2.钉钉
     */
    public static final String PUSH_CHANNEL_DING_TALK = "2";

    /**
     * 推送渠道：3.商家小程序
     */
    public static final String PUSH_CHANNEL_MERCHANT_APPLET = "3";

    /**
     * 推送渠道：4.租客小程序
     */
    public static final String PUSH_CHANNEL_RENTER_APPLET = "4";

    /**
     * 触发行为：1.立即推送
     */
    public static final String TRIGGERING_BEHAVIOR_PUSH_NOW = "1";

    /**
     * 触发行为：2.定时推送
     */
    public static final String TRIGGERING_BEHAVIOR_TIMING_PUSH = "2";

    /**
     * 触发行为：3.重复推送
     */
    public static final String TRIGGERING_BEHAVIOR_REPEATED_PUSH = "3";

    /**
     * 触发行为：4.指定条件推送
     */
    public static final String TRIGGERING_BEHAVIOR_CONDITION_PUSH = "4";

    /**
     * 状态：0.启用
     */
    public static final String ORDINARY_MESSAGE_STATE_ENABLE = "0";

    /**
     * 状态：1.禁用
     */
    public static final String ORDINARY_MESSAGE_STATE_FORBIDDEN = "1";

    /**
     * 普通消息缓存key前缀
     */
    public static final String ORDINARY_MESSAGE_CACHE_PREFIX = "ordinary_message_id:";
}
